package cn.heyige.backend.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member_level")
public class MemberLevelDO {
    
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    @TableField("name")
    private String name;

    @TableField("description")
    private String description;
    
    @TableField("level")
    private Integer level;

    @TableField("price")
    private Double price;

    @TableField("duration_days")
    private Integer durationDays;
    
    @TableField("daily_quota")
    private Integer dailyQuota;
    
    @TableField("is_active")
    private Boolean isActive = true;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}